/* begin Page */

/* Generated with Artisteer version 2.3.0.21098, file checksum is 4EFC96DD. */

cssFix = function(){
var u = navigator.userAgent.toLowerCase(),
addClass = function(el, val){
	if(! el.className) {
		el.className = val;
	} else {
		var newCl = el.className;
		newCl+=(&#39; &#39;+val);
		el.className = newCl;
	}
},
is = function(t){return (u.indexOf(t)!=-1)};
addClass(document.getElementsByTagName(&#39;html&#39;)[0],[
(!(/opera|webtv/i.test(u))&amp;&amp;/msie (\d)/.test(u))?(&#39;ie ie&#39;+RegExp.$1)
: is(&#39;firefox/2&#39;)?&#39;gecko firefox2&#39;
: is(&#39;firefox/3&#39;)?&#39;gecko firefox3&#39;
: is(&#39;gecko/&#39;)?&#39;gecko&#39;
: is(&#39;chrome/&#39;)?&#39;chrome&#39;
: is(&#39;opera/9&#39;)?&#39;opera opera9&#39;:/opera (\d)/.test(u)?&#39;opera opera&#39;+RegExp.$1
: is(&#39;konqueror&#39;)?&#39;konqueror&#39;
: is(&#39;applewebkit/&#39;)?&#39;webkit safari&#39;
: is(&#39;mozilla/&#39;)?&#39;gecko&#39;:&#39;&#39;,
(is(&#39;x11&#39;)||is(&#39;linux&#39;))?&#39; linux&#39;
: is(&#39;mac&#39;)?&#39; mac&#39;
: is(&#39;win&#39;)?&#39; win&#39;:&#39;&#39;
].join(&#39; &#39;));
}();

var artEventHelper = {
	&#39;bind&#39;: function(obj, evt, fn) {
		if (obj.addEventListener)
			obj.addEventListener(evt, fn, false);
		else if (obj.attachEvent)
			obj.attachEvent(&#39;on&#39; + evt, fn);
		else
			obj[&#39;on&#39; + evt] = fn;
	}
};

var userAgent = navigator.userAgent.toLowerCase();
var browser = {
	version: (userAgent.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/) || [])[1],
	safari: /webkit/.test(userAgent) &amp;&amp; !/chrome/.test(userAgent),
	chrome: /chrome/.test(userAgent),
	opera: /opera/.test(userAgent),
	msie: /msie/.test(userAgent) &amp;&amp; !/opera/.test(userAgent),
	mozilla: /mozilla/.test(userAgent) &amp;&amp; !/(compatible|webkit)/.test(userAgent)
};

var artLoadEvent = (function() {
	

	var list = [];

	var done = false;
	var ready = function() {
		if (done) return;
		done = true;
		for (var i = 0; i &lt; list.length; i++)
			list[i]();
	};

	if (document.addEventListener &amp;&amp; !browser.opera)
		document.addEventListener(&#39;DOMContentLoaded&#39;, ready, false);

	if (browser.msie &amp;&amp; window == top) {
		(function() {
			try {
				document.documentElement.doScroll(&#39;left&#39;);
			} catch (e) {
				setTimeout(arguments.callee, 10);
				return;
			}
			ready();
		})();
	}

	if (browser.opera) {
		document.addEventListener(&#39;DOMContentLoaded&#39;, function() {
			for (var i = 0; i &lt; document.styleSheets.length; i++) {
				if (document.styleSheets[i].disabled) {
					setTimeout(arguments.callee, 10);
					return;
				}
			}
			ready();
		}, false);
	}

	if (browser.safari || browser.chrome) {
		var numStyles;
		(function() {
			if (document.readyState != &#39;loaded&#39; &amp;&amp; document.readyState != &#39;complete&#39;) {
				setTimeout(arguments.callee, 10);
				return;
			}
			if (&#39;undefined&#39; == typeof numStyles) {
				numStyles = document.getElementsByTagName(&#39;style&#39;).length;
				var links = document.getElementsByTagName(&#39;link&#39;);
				for (var i = 0; i &lt; links.length; i++) {
					numStyles += (links[i].getAttribute(&#39;rel&#39;) == &#39;stylesheet&#39;) ? 1 : 0;
				}
				if (document.styleSheets.length != numStyles) {
					setTimeout(arguments.callee, 0);
					return;
				}
			}
			ready();
		})();
	}
	artEventHelper.bind(window, &#39;load&#39;, ready);
	return ({
		add: function(f) {
			list.push(f);
		}
	})
})();

(function() {
	// fix ie blinking
	var m = document.uniqueID &amp;&amp; document.compatMode &amp;&amp; !window.XMLHttpRequest &amp;&amp; document.execCommand;
	try { if (!!m) { m(&#39;BackgroundImageCache&#39;, false, true); } }
	catch (oh) { };
})();

function xGetElementsByClassName(clsName, parentEle, tagName) {
	var elements = null;
	var found = [];
	var s = String.fromCharCode(92);
	var re = new RegExp(&#39;(?:^|&#39; + s + &#39;s+)&#39; + clsName + &#39;(?:$|&#39; + s + &#39;s+)&#39;);
	if (!parentEle) parentEle = document;
	if (!tagName) tagName = &#39;*&#39;;
	elements = parentEle.getElementsByTagName(tagName);
	if (elements) {
		for (var i = 0; i &lt; elements.length; ++i) {
			if (elements[i].className.search(re) != -1) {
				found[found.length] = elements[i];
			}
		}
	}
	return found;
}

var styleUrlCached = null;
function GetStyleUrl() {
    if (null == styleUrlCached) {
        var ns;
        styleUrlCached = &#39;&#39;;
        ns = document.getElementsByTagName(&#39;link&#39;);
        for (var i = 0; i &lt; ns.length; i++) {
            var l = ns[i];
            if (l.href &amp;&amp; /style\.ie6\.css(\?.*)?$/.test(l.href)) {
                return styleUrlCached = l.href.replace(/style\.ie6\.css(\?.*)?$/, &#39;&#39;);
            }
        }

        ns = document.getElementsByTagName(&#39;style&#39;);
        for (var i = 0; i &lt; ns.length; i++) {
            var matches = new RegExp(&#39;import\\s+&quot;([^&quot;]+\\/)style\\.ie6\\.css&quot;&#39;).exec(ns[i].innerHTML);
            if (null != matches &amp;&amp; matches.length &gt; 0)
                return styleUrlCached = matches[1];
        }
    }
    return styleUrlCached;
}

function fixPNG(element) {
	if (/MSIE (5\.5|6).+Win/.test(navigator.userAgent)) {
		var src;
		if (element.tagName == &#39;IMG&#39;) {
			if (/\.png$/.test(element.src)) {
				src = element.src;
				element.src = GetStyleUrl() + &#39;http://lh6.ggpht.com/_ObmIb-UmMEo/TcpvW3ecJQI/AAAAAAAAAdQ/kNjwvfJkvJo/s320/spacer.gif&#39;;
			}
		}
		else {
			src = element.currentStyle.backgroundImage.match(/url\(&quot;(.+\.png)&quot;\)/i);
			if (src) {
				src = src[1];
				element.runtimeStyle.backgroundImage = &#39;none&#39;;
			}
		}
		if (src) element.runtimeStyle.filter = &quot;progid:DXImageTransform.Microsoft.AlphaImageLoader(src=&#39;&quot; + src + &quot;&#39;)&quot;;
	}
}

function artHasClass(el, cls) {
	return (el &amp;&amp; el.className &amp;&amp; (&#39; &#39; + el.className + &#39; &#39;).indexOf(&#39; &#39; + cls + &#39; &#39;) != -1);
}


var block_header_exists = false;
/* end Page */

/* begin Menu */
function gTranslateFix() {
	var menus = xGetElementsByClassName(&quot;art-menu&quot;, document);
	for (var i = 0; i &lt; menus.length; i++) {
		var menu = menus[i];
		var childs = menu.childNodes;
		var listItems = [];
		for (var j = 0; j &lt; childs.length; j++) {
			var el = childs[j];
			if (String(el.tagName).toLowerCase() == &quot;li&quot;) listItems.push(el);
		}
		for (var j = 0; j &lt; listItems.length; j++) {
			var item = listItems[j];
			var a = null;
			var gspan = null;
			for (var p = 0; p &lt; item.childNodes.length; p++) {
				var l = item.childNodes[p];
				if (!(l &amp;&amp; l.tagName)) continue;
				if (String(l.tagName).toLowerCase() == &quot;a&quot;) a = l;
				if (String(l.tagName).toLowerCase() == &quot;span&quot;) gspan = l;
			}
			if (gspan &amp;&amp; a) {
				var t = null;
				for (var k = 0; k &lt; gspan.childNodes.length; k++) {
					var e = gspan.childNodes[k];
					if (!(e &amp;&amp; e.tagName)) continue;
					if (String(e.tagName).toLowerCase() == &quot;a&quot; &amp;&amp; e.firstChild) e = e.firstChild;
					if (e &amp;&amp; e.className &amp;&amp; e.className == &#39;t&#39;) {
						t = e;
						if (t.firstChild &amp;&amp; t.firstChild.tagName &amp;&amp; String(t.firstChild.tagName).toLowerCase() == &quot;a&quot;) {
							while (t.firstChild.firstChild) t.appendChild(t.firstChild.firstChild);
							t.removeChild(t.firstChild);
						}
						a.appendChild(t);
						break;
					}
				}
				gspan.parentNode.removeChild(gspan);
			}
		}
	}
}
artLoadEvent.add(gTranslateFix);

function Insert_Separators() {
	var menus = xGetElementsByClassName(&quot;art-menu&quot;, document);
	for (var i = 0; i &lt; menus.length; i++) {
		var menu = menus[i];
		var childs = menu.childNodes;
		var listItems = [];
		for (var j = 0; j &lt; childs.length; j++) {
			var el = childs[j];
			if (String(el.tagName).toLowerCase() == &quot;li&quot;) listItems.push(el);
		}
		for (var j = 0; j &lt; listItems.length - 1; j++) {
			var item = listItems[j];
			var span = document.createElement(&#39;span&#39;);
			span.className = &#39;art-menu-separator&#39;;
			var li = document.createElement(&#39;li&#39;);
			li.appendChild(span);
			item.parentNode.insertBefore(li, item.nextSibling);
		}
	}
}
artLoadEvent.add(Insert_Separators);

function Menu_IE6Setup() {
	var isIE6 = navigator.userAgent.toLowerCase().indexOf(&quot;msie&quot;) != -1
    &amp;&amp; navigator.userAgent.toLowerCase().indexOf(&quot;msie 7&quot;) == -1;
	if (!isIE6) return;
	var aTmp2, i, j, oLI, aUL, aA;
	var aTmp = xGetElementsByClassName(&quot;art-menu&quot;, document, &quot;ul&quot;);
	for (i = 0; i &lt; aTmp.length; i++) {
		aTmp2 = aTmp[i].getElementsByTagName(&quot;li&quot;);
		for (j = 0; j &lt; aTmp2.length; j++) {
			oLI = aTmp2[j];
			aUL = oLI.getElementsByTagName(&quot;ul&quot;);
			if (aUL &amp;&amp; aUL.length) {
				oLI.UL = aUL[0];
				aA = oLI.getElementsByTagName(&quot;a&quot;);
				if (aA &amp;&amp; aA.length)
					oLI.A = aA[0];
				oLI.onmouseenter = function() {
					this.className += &quot; art-menuhover&quot;;
					this.UL.className += &quot; art-menuhoverUL&quot;;
					if (this.A) this.A.className += &quot; art-menuhoverA&quot;;
				};
				oLI.onmouseleave = function() {
					this.className = this.className.replace(/art-menuhover/, &quot;&quot;);
					this.UL.className = this.UL.className.replace(/art-menuhoverUL/, &quot;&quot;);
					if (this.A) this.A.className = this.A.className.replace(/art-menuhoverA/, &quot;&quot;);
				};
			}
		}
	}
}
artLoadEvent.add(Menu_IE6Setup);
/* end Menu */

/* begin BlockHeader */
block_header_exists = true;/* end BlockHeader */

/* begin Button */


function artButtonsSetupJsHover(className) {
	var tags = [&quot;input&quot;, &quot;a&quot;, &quot;button&quot;];
	for (var j = 0; j &lt; tags.length; j++){
		var buttons = xGetElementsByClassName(className, document, tags[j]);
		for (var i = 0; i &lt; buttons.length; i++) {
			var button = buttons[i];
			if (!button.tagName || !button.parentNode) return;
			if (!artHasClass(button.parentNode, &#39;art-button-wrapper&#39;)) {
				if (!artHasClass(button, &#39;art-button&#39;)) button.className += &#39; art-button&#39;;
				var wrapper = document.createElement(&#39;span&#39;);
				wrapper.className = &quot;art-button-wrapper&quot;;
				if (artHasClass(button, &#39;active&#39;)) wrapper.className += &#39; active&#39;;
				var spanL = document.createElement(&#39;span&#39;);
				spanL.className = &quot;l&quot;;
				spanL.innerHTML = &quot; &quot;;
				wrapper.appendChild(spanL);
				var spanR = document.createElement(&#39;span&#39;);
				spanR.className = &quot;r&quot;;
				spanR.innerHTML = &quot; &quot;;
				wrapper.appendChild(spanR);
				button.parentNode.insertBefore(wrapper, button);
				wrapper.appendChild(button);
			}
			artEventHelper.bind(button, &#39;mouseover&#39;, function(e) {
				e = e || window.event;
				wrapper = (e.target || e.srcElement).parentNode;
				wrapper.className += &quot; hover&quot;;
			});
			artEventHelper.bind(button, &#39;mouseout&#39;, function(e) {
				e = e || window.event;
				button = e.target || e.srcElement;
				wrapper = button.parentNode;
				wrapper.className = wrapper.className.replace(/hover/, &quot;&quot;);
				if (!artHasClass(button, &#39;active&#39;)) wrapper.className = wrapper.className.replace(/active/, &quot;&quot;);
			});
			artEventHelper.bind(button, &#39;mousedown&#39;, function(e) {
				e = e || window.event;
				button = e.target || e.srcElement;
				wrapper = button.parentNode;
				if (!artHasClass(button, &#39;active&#39;)) wrapper.className += &quot; active&quot;;
			});
			artEventHelper.bind(button, &#39;mouseup&#39;, function(e) {
				e = e || window.event;
				button = e.target || e.srcElement;
				wrapper = button.parentNode;
				if (!artHasClass(button, &#39;active&#39;)) wrapper.className = wrapper.className.replace(/active/, &quot;&quot;);
			});
		}
	}
}

artLoadEvent.add(function() { artButtonsSetupJsHover(&quot;art-button&quot;); });
/* end Button */



function artInsertSidebarBlocks(widgetClassName) {
    var widgets = xGetElementsByClassName(widgetClassName, document);
    for (var i = 0; i &lt; widgets.length; i++) {
        var widget = widgets[i];
        if (widget.id == &#39;LinkList99&#39;) continue;
        if (widget.id == &#39;LinkList98&#39;) continue;
        if (widget.id == &#39;Text99&#39;)     continue;
        
        var childs = widget.childNodes;
        var widgetTitle = widget.getElementsByTagName(&quot;h2&quot;);
        var widgetContent = widget.innerHTML;
        var widgetTitleText = &#39;&#39;;
        if (widgetTitle.length != 0){
            widgetTitleText = widgetTitle[0].innerHTML;
        }

        var div1  = document.createElement(&#39;div&#39;); div1.className  = &#39;art-Block&#39;;
        
                        
        var div2  = document.createElement(&#39;div&#39;); div2.className  = &#39;art-Block-tl&#39;; div1.appendChild(div2);
        var div3  = document.createElement(&#39;div&#39;); div3.className  = &#39;art-Block-tr&#39;; div1.appendChild(div3);
        var div4  = document.createElement(&#39;div&#39;); div4.className  = &#39;art-Block-bl&#39;; div1.appendChild(div4);
        var div5  = document.createElement(&#39;div&#39;); div5.className  = &#39;art-Block-br&#39;; div1.appendChild(div5);
        var div6  = document.createElement(&#39;div&#39;); div6.className  = &#39;art-Block-tc&#39;; div1.appendChild(div6);
        var div7  = document.createElement(&#39;div&#39;); div7.className  = &#39;art-Block-bc&#39;; div1.appendChild(div7);
        var div8  = document.createElement(&#39;div&#39;); div8.className  = &#39;art-Block-cl&#39;; div1.appendChild(div8);
        
                        
        var div9  = document.createElement(&#39;div&#39;); div9.className  = &#39;art-Block-cr&#39;; div1.appendChild(div9);
        var div10 = document.createElement(&#39;div&#39;); div10.className = &#39;art-Block-cc&#39;; div1.appendChild(div10);
        
                        
        var divBB   = document.createElement(&#39;div&#39;); divBB.className = &#39;art-Block-body&#39;;  div1.appendChild(divBB);
        if (widgetTitleText &amp;&amp; block_header_exists){
            var divBH   = document.createElement(&#39;div&#39;); divBH.className = &#39;art-BlockHeader&#39;; divBB.appendChild(divBH);
                        var divBHl  = document.createElement(&#39;div&#39;); divBHl.className = &#39;l&#39;; divBH.appendChild(divBHl);
            var divBHr  = document.createElement(&#39;div&#39;); divBHr.className = &#39;r&#39;; divBH.appendChild(divBHr);
                        var divBHti = document.createElement(&#39;div&#39;); divBHti.className = &#39;art-header-tag-icon&#39;; divBH.appendChild(divBHti);
            var divBHt  = document.createElement(&#39;div&#39;); divBHt.className = &#39;t&#39;; divBHti.appendChild(divBHt);
            divBHt.innerHTML = widgetTitleText;
        }

        var divBC   = document.createElement(&#39;div&#39;); divBC.className = &#39;art-BlockContent&#39;; divBB.appendChild(divBC);
        
                        
        var di2  = document.createElement(&#39;div&#39;); di2.className  = &#39;art-BlockContent-tl&#39;; divBC.appendChild(di2);
        var di3  = document.createElement(&#39;div&#39;); di3.className  = &#39;art-BlockContent-tr&#39;; divBC.appendChild(di3);
        var di4  = document.createElement(&#39;div&#39;); di4.className  = &#39;art-BlockContent-bl&#39;; divBC.appendChild(di4);
        var di5  = document.createElement(&#39;div&#39;); di5.className  = &#39;art-BlockContent-br&#39;; divBC.appendChild(di5);
        var di6  = document.createElement(&#39;div&#39;); di6.className  = &#39;art-BlockContent-tc&#39;; divBC.appendChild(di6);
        var di7  = document.createElement(&#39;div&#39;); di7.className  = &#39;art-BlockContent-bc&#39;; divBC.appendChild(di7);
        var di8  = document.createElement(&#39;div&#39;); di8.className  = &#39;art-BlockContent-cl&#39;; divBC.appendChild(di8);
        
                        
        var di9  = document.createElement(&#39;div&#39;); di9.className  = &#39;art-BlockContent-cr&#39;; divBC.appendChild(di9);
        var di10 = document.createElement(&#39;div&#39;); di10.className = &#39;art-BlockContent-cc&#39;; divBC.appendChild(di10);
        
                        
        var divBCb  = document.createElement(&#39;div&#39;); divBCb.className = &#39;art-BlockContent-body&#39;; divBC.appendChild(divBCb);
        
        
        
        if ( (widgetClassName == &#39;widget Gadget&#39;) &amp;&amp; (widgetContent.indexOf(&quot;friendconnect.js&quot;) != -1)){
            
            if (browser.mozilla){
                if (widgetTitle.length != 0){
                    widgetTitle[0].parentNode.removeChild(widgetTitle[0]);
                }
                divBCb.innerHTML = widget.innerHTML;
                widget.innerHTML = &quot;&quot;;
                widget.appendChild(div1);
            }
            if (browser.msie){
                if (widgetTitle.length != 0){
                    widgetTitle[0].parentNode.removeChild(widgetTitle[0]);
                }
                var childsLength = childs.length;
                for (var j = 0; j &lt; childsLength; j++) {
                    divBCb.appendChild(childs[0]);
                }
                widget.appendChild(div1);
            }
            
        } else {
            if (widgetTitle.length != 0){
                widgetTitle[0].parentNode.removeChild(widgetTitle[0]);
            }
            var childsLength = childs.length;
            for (var j = 0; j &lt; childsLength; j++) {
                divBCb.appendChild(childs[0]);
            }
            widget.appendChild(div1);
        }
  
        
        if (widgetClassName == &#39;widget Subscribe&#39;) {
            widget.style.position = &quot;relative&quot;;
            widget.style.zIndex = &quot;2&quot;;
        }
        
    }
}

function artCheckNavBar(){
    var navbar = document.getElementById(&quot;navbar&quot;);
    if (navbar){
        if (false) {
            var el1 = document.getElementById(&quot;art-page-background-glare&quot;);
            if (el1) el1.style.top = &quot;30px&quot;;
            var el2 = document.getElementById(&quot;art-page-background-simple-gradient&quot;);
            if (el2) el2.style.top = &quot;30px&quot;;
            if (!el2) {
                var el3 = document.getElementById(&quot;art-page-background-gradient&quot;);
                if (el3) el3.style.top = &quot;30px&quot;;
            }
        } else {
            navbar.style.display = &#39;none&#39;;
        }
    }
}

function artFixFooterMenu(){
    var widgetLinks = document.getElementById(&quot;LinkList98&quot;);
    var widgetText  = document.getElementById(&quot;Text99&quot;);
    if (widgetLinks) {
        var widgetText = widgetLinks.innerHTML;
        widgetLinks.innerHTML = widgetText.replace(&quot;| |&quot;, &quot;&quot;);
    } else {
        if (widgetText){
            var els = xGetElementsByClassName(&quot;widget-content&quot;, widgetText);
            var el = els[0];
            if (el.innerHTML == &#39;\n&#39;) {
                el.innerHTML = &quot;&lt;br /&gt;&lt;br /&gt;&quot;;
            } else {
                el.innerHTML += &quot;&lt;br /&gt;&quot;;
            }
        }
    }
}

function artFixPostHeaders(){
    var els = xGetElementsByClassName(&quot;art-PostMetadataHeader&quot;, document);
    for (var i = 0; i &lt; els.length; i++) {
        var el = els[i];
        if (el) {
            var elText = el.innerHTML;
            if ((el.getElementsByTagName(&quot;div&quot;).length == 0) &amp;&amp; (el.getElementsByTagName(&quot;h2&quot;).length == 0)) el.style.visibility = &#39;hidden&#39;;
        }
    }
}

artLoadEvent.add(function() { artFixPostHeaders(); });

function artFixPostFooters(){
    var els = xGetElementsByClassName(&quot;art-PostMetadataFooter&quot;, document);
    for (var i = 0; i &lt; els.length; i++) {
        var el = els[i];
        if (el) {
            var els2 = xGetElementsByClassName(&quot;art-PostFooterIcons&quot;, el);
            for (var j = 0; j &lt; els2.length; j++) {
                var el2 = els2[j];
                var elText = el2.innerHTML;
                if ((el.getElementsByTagName(&quot;img&quot;).length == 0) &amp;&amp; (el.getElementsByTagName(&quot;a&quot;).length == 0)) el.style.visibility = &#39;hidden&#39;;
            }
        }
    }
}

artLoadEvent.add(function() { artFixPostFooters(); });

function artFixTopMenu(){
    var topMenu = document.getElementById(&quot;LinkList99&quot;);
    if (!topMenu){
        var navSection = document.getElementById(&quot;navsection&quot;);
        if (navSection){
            if (showHomePage) {
                if (window.location == homePageLink) 
                    var tmpstr = &#39;&lt;a href=&quot;&#39;+homePageLink+&#39;&quot; class=&quot;active&quot;&gt;&#39;;
                else
                    var tmpstr = &#39;&lt;a href=&quot;&#39;+homePageLink+&#39;&quot;&gt;&#39;;
                navSection.innerHTML = &#39;&lt;div&gt;&lt;div class=&quot;l&quot;&gt;&lt;/div&gt;&lt;div class=&quot;r&quot;&gt;&lt;/div&gt;&lt;div class=&quot;art-nav-center&quot;&gt;&lt;ul class=&quot;art-menu&quot;&gt;&lt;li&gt;&#39;+tmpstr+&#39;&lt;span class=&quot;l&quot;&gt;&lt;/span&gt;&lt;span class=&quot;r&quot;&gt;&lt;/span&gt;&lt;span class=&quot;t&quot;&gt;&#39;+homePageName+&#39;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&#39;;
            } else {
                navSection.innerHTML = &#39;&lt;div&gt;&lt;div class=&quot;l&quot;&gt;&lt;/div&gt;&lt;div class=&quot;r&quot;&gt;&lt;/div&gt;&lt;div class=&quot;art-nav-center&quot;&gt;&lt;/div&gt;&lt;/div&gt;&#39;;
            }
        }
    }
}
artLoadEvent.add(function() { artFixTopMenu(); });

function artDisplayTopMenu(menuitems){
    var i=0;
    var subList = false;
    var menu = new Array();
    for(i=0; i &lt; menuitems.length; i++){
      var item = menuitems[i];
      var itemname = item[0];
      var itemlink = item[1];
      
      if ( (itemname.indexOf(&quot;-&quot;) == 0) &amp;&amp; !subList) document.write(&quot;&lt;ul&gt;&quot;);
      else if ( (itemname.indexOf(&quot;-&quot;) != 0) &amp;&amp; subList) { document.write(&quot;&lt;/ul&gt;&lt;/li&gt;&quot;); subList = false; }
      else if (i != 0) document.write(&quot;&lt;/li&gt;&quot;);
      
      document.write(&quot;&lt;li&gt;&quot;);
      
      if (itemname.indexOf(&quot;-&quot;) != 0){
        if (window.location == itemlink) 
            document.write(&#39;&lt;a href=&quot;&#39;+itemlink+&#39;&quot; class=&quot;active&quot;&gt;&lt;span class=&quot;l&quot;&gt;&lt;/span&gt;&lt;span class=&quot;r&quot;&gt;&lt;/span&gt;&lt;span class=&quot;t&quot;&gt;&#39;+itemname+&#39;&lt;/span&gt;&lt;/a&gt;&#39;);
        else if(itemlink == &quot;http://./&quot;)
            document.write(&#39;&lt;a href=&quot;#&quot;&gt;&lt;span class=&quot;l&quot;&gt;&lt;/span&gt;&lt;span class=&quot;r&quot;&gt;&lt;/span&gt;&lt;span class=&quot;t&quot;&gt;&#39;+itemname+&#39;&lt;/span&gt;&lt;/a&gt;&#39;);
        else
            document.write(&#39;&lt;a href=&quot;&#39;+itemlink+&#39;&quot;&gt;&lt;span class=&quot;l&quot;&gt;&lt;/span&gt;&lt;span class=&quot;r&quot;&gt;&lt;/span&gt;&lt;span class=&quot;t&quot;&gt;&#39;+itemname+&#39;&lt;/span&gt;&lt;/a&gt;&#39;);
      } else {
        document.write(&#39;&lt;a href=&quot;&#39;+itemlink+&#39;&quot;&gt;&#39;+itemname.substr(1,itemname.length)+&#39;&lt;/a&gt;&#39;);
        subList = true;
      }
      if (i==(menuitems.length-1)) document.write(&quot;&lt;/li&gt;&quot;);
    }
}